from flask import jsonify

def list_result(data=[], code=200, message="success"):
    str1 = {"code": code, "message": message, "data": data}
    return jsonify(str1)


def map_result(data={}, code=200, message="success"):
    return jsonify({"code": code, "message": message, "data": data})